<?php

class otherContacts extends CWidget
{

	public $class = 'widget';
	public $ul = 'address-list';

	public function run()
	{
		$contacts = Yii::app()->db->createCommand( " SELECT \"pageUrl\", \"pageLinkedServices\" FROM {{pages}} WHERE \"pageType\"='contact' AND \"pageActive\" = 1 AND \"pageItemId\" =" . Yii::app()->getModule( 'main' )->userRegion[ 'id' ] )->queryAll( TRUE );

		$this->render( 'othercontacts', ['contacts' => $contacts, 'class' => $this->class, 'ul'=>$this->ul ] );
	}

}
